<ui:composition xmlns='http://www.w3.org/1999/xhtml'
                xmlns:p='http://primefaces.org/ui'
                xmlns:f='http://java.sun.com/jsf/core'
                xmlns:c='http://java.sun.com/jsp/jstl/core'
                xmlns:ui='http://java.sun.com/jsf/facelets'>

<li class='closed' style='padding-top: 2px; padding-bottom: 1px'>

 <span class="#{node.leaf? 'file':'folder'}">

 <p:commandLink value="#{node.leaf? node.content.code : ''} #{node.leaf? '-' : ''} #{node.label}" update=':F0 :F1 :F2 :F3 :FX'

                actionListener='#{controller.navigationEvent}' style='margin-left: 14px'>

                <f:param name='nodeId'  value='#{node.id}'/><f:param name='tree' value='true'/></p:commandLink>

  </span>


  <c:if test='#{not empty node.node}'>

  <ul>

  <c:forEach items='#{node.node}' var='node'>

  <ui:include src='node.xhtml'/></c:forEach>

  </ul>

  </c:if>

</li>

</ui:composition>